package org.example;

import org.example.controller.LoginController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("beans.xml");

        LoginController controller =
                (LoginController) context.getBean("loginController");
        System.out.println(context);

        ((ClassPathXmlApplicationContext)context).close();
    }
}
